package com.qding.park.manager.adapter.factory.enums;

/**
 * @ClassName SOAServiceEnum
 * @Description TODO(本项目SOA服务名枚举)
 * @author LeiYang
 * @Date 2017年5月4日 下午5:32:58
 * @version 1.0.0
 */
public enum ParkAdapterEnum {
    //BaseDataAdapter,InviteAdapterImpl,LockCarAdapterImpl,ParkAdapterImpl,PayFeeAdapterImpl,CarAdapter,ReserveAdapter
    
    BASEDATE_ADAPTER_NAME("基础数据操作-adapter", "baseDataAdapter"),
    
    INVITE_ADAPTER_NAME("邀请操作-adapter", "inviteAdapter"),
    LOCKCAR_ADAPTER_NAME("锁车操作-adapter","lockCarAdapter"),
    PARK_ADAPTER_NAME("车场操作-adapter","parkAdapter"),
    PAYFEE_ADAPTER_NAME("收费-adapter","payFeeAdapter"),
    CAR_ADAPTER_NAME("车辆-adapter","carAdapter"),
    RESERVE_ADAPTER_NAME("预定-adapter","reserveAdapter");
    
    /** 枚举值 */
    private String value;
    /** 描述 */
    private String desc;
    
    private ParkAdapterEnum(String desc, String value) {
        this.value = value;
        this.desc = desc;
    }

    
    public String getValue() {
        return value;
    }

    
    public void setValue(String value) {
        this.value = value;
    }

    
    public String getDesc() {
        return desc;
    }

    
    public void setDesc(String desc) {
        this.desc = desc;
    }
    
    
    public static ParkAdapterEnum getEnum(String value) {
        ParkAdapterEnum resultEnum = null;
        ParkAdapterEnum[] enumAry = ParkAdapterEnum.values();
        for (int i = 0; i < enumAry.length; i++) {
            if (enumAry[i].getValue().equals(value)) {
                resultEnum = enumAry[i];
                break;
            }
        }
        return resultEnum;
    }


}
